﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caifu.Datas;

namespace Caifu.Clients
{
	/// <summary>
	/// 非交易日。
	/// </summary>
	public static class NontradeDateClient
	{
		/// <summary>
		/// 获取非交易日记录。
		/// </summary>
		/// <param name="date">指定日期</param>
		/// <returns></returns>
		public static NontradeDate GetNontradeDate(DateTime date)
		{
			return NontradeDateData.Instance.GetNontradeDate(date);
		}

		/// <summary>
		/// 获取所有非交易日。
		/// </summary>
		/// <returns></returns>
		public static IList<NontradeDate> GetAllNontradeDate()
		{
			return NontradeDateData.Instance.GetAllNontradeDate();
		}

		/// <summary>
		/// 获取指定年份所有非交易日。
		/// </summary>
		/// <param name="year">指定年份</param>
		/// <returns></returns>
		public static IList<NontradeDate> GetNontradeDates(int year)
		{
			return NontradeDateData.Instance.GetNontradeDates(year);
		}
	}
}
